package com.bwie.system.api;

import com.bwie.common.core.constant.ServiceNameConstants;
import com.bwie.common.core.domain.Result;
import com.bwie.system.api.domain.SkuInfo;
import com.bwie.system.api.factory.RemoteProductFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteProductService", value = ServiceNameConstants.PRODUCT_SERVICE, fallbackFactory = RemoteProductFallbackFactory.class)
public interface RemoteProductService
{
    /**
     * 获取sku信息详细信息
     */
    @GetMapping(value = "/skuInfo/{skuId}")
    public Result<SkuInfo> getInfo(@PathVariable("skuId") Long skuId);

}
